package com.han.hotelplat.service.systemuser;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.han.hotelplat.comm.base.Pager;
import com.han.hotelplat.pojo.systemuser.Permission;
import com.han.hotelplat.pojo.systemuser.Resource;
import com.han.hotelplat.pojo.systemuser.Systemuser;

public interface SystemuserService {
	public Map login(String username, String password);

	public void creatCMSUser(Systemuser user);

	public Systemuser findUserByTel(String tel);

	public Systemuser findUserByUsernam(String username);

	public void update(Systemuser user);

	public Systemuser findUserByUserid(String userid);

	public List<Permission> findAllPermissions();

	public List<Resource> findAllResource();

	public Pager<Systemuser> getAllSystemuserByPage(Integer areaCode, Integer roleId,
			String condition, Integer pageNo);

	public Systemuser findUserById(Integer id);
}
